/**
 * 跨应用路由跳转
 * @nparam {String} href url地址
 * @param {Object} stateObj 状态参数 可以通过history.state读取
 * @param {String} title 标题 暂时没有用
 */
export function routerGo(param = {}) {
    var nparam = { href: "/", title: null, stateObj: {}, ...param }
    window.history.pushState(nparam.stateObj, nparam.title, nparam.href);
}


export function routerReplaceGo(param = {}) {
    var nparam = { href: "/", title: null, stateObj: {}, ...param }
    window.history.replaceState(nparam.stateObj, nparam.title, nparam.href);
}


export default {
    routerGo, // 跨应用路由跳转
    routerReplaceGo,
}